package uk.ac.ncl.teach.ex.people;

/** 
 * Student - represents a University student.
 *
 * @author Nick Cook &lt;nick.cook@ncl.ac.uk&gt;
 * @version $Revision: 1624 $<br />
 * $Date: 2011-01-17 12:20:26 +0000 (Mon, 17 Jan 2011) $<br />
 * Copyright (C) 2007 Newcastle University, UK
 */

public class Student extends UniversityPerson {
    private final int stage;

    /**
     * Construct a student given name, age, institution and stage.
     *
     * @param name the student's name
     * @param age the student's age
     * @param institution the student's institution
     * @param stage the student's school
     */
    public Student(String name, int age, 
        String institution, int stage) {
        super(name, age, institution);
        System.out.println(getClass() 
            + " called Student constructor");
        this.stage = stage;
    }

    /**
     * Get the <code>stage</code> field.
     *
     * @return Returns the <code>stage</code> field
     */
    public int getStage() {
        return stage;
    }
    
    public void printDetails(){
    	super.printDetails();
    	System.out.println("Stage: " + stage);
    }
}